package com.liuwa.sys.domain;

import com.liuwa.common.annotation.Excel;
import com.liuwa.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 第三方授权对象 sys_oauth
 * 
 * @author liuwa
 * @date 2021-11-02
 */
public class Oauth extends BaseEntity<Long>{

    private static final long serialVersionUID = 1L;

    public static final String PLATFORM_WEAPP = "weapp"; // 小程序


    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** Open ID */
    @Excel(name = "Open ID")
    private String openId;

    /** 平台 */
    @Excel(name = "平台")
    private String platform;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setPlatform(String platform) 
    {
        this.platform = platform;
    }

    public String getPlatform() 
    {
        return platform;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("platform", getPlatform())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
